package cn.mall.auth.service.impl;

import cn.mall.auth.domain.Menu;
import cn.mall.auth.mapper.MenuMapper;
import cn.mall.auth.service.IMenuService;
import cn.mall.base.service.impl.BaseServiceImpl;
import cn.mall.org.mapper.ManagerMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Jarvis-Smith
 * @since 2023-11-30
 */
@Service
public class MenuServiceImpl extends BaseServiceImpl<Menu> implements IMenuService {

    @Autowired
    private MenuMapper menuMapper;

    @Override
    public List<Menu> loadMenuTree() {
        return menuMapper.loadMenuTree();
    }

    @Override
    public List<Long> loadMenuIds() {
        return menuMapper.loadMenuIds();
    }

    @Override
    public List<Menu> tree(Long loginUserId) {
        return menuMapper.tree(loginUserId);
    }
}
